<template>
  <j-modal
    :title="title"
    :width="1200"
    :visible="visible"
    :maskClosable="false"
    switchFullscreen
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel">
    <chg-print-repeat-form ref="billRepeatFromChild" @handleRepeatBill="handleRepeatBill"> </chg-print-repeat-form>
  </j-modal>
</template>

<script>
  import ChgPrintRepeatForm from './ChgPrintRepeatForm'
  export default {
    name: 'ChgPrintRepeatModal',
    description: '缴费列表弹框-重打票据',      
    components: {
      ChgPrintRepeatForm
    },
    data() {
      return {
        title:'',
        visible: false,
        disableSubmit: false
      }
    },
    methods:{
      add () {
        this.visible=true
        // this.$nextTick(()=>{
        //   this.$refs.payfeeChild.add();
        // })
      },    
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleOk () {
        this.$refs.payfeeChild.handleOk();
      },
      handleRepeatBill(){
        this.$emit('handleRepeatBill');   
      },

      getBillParam(){
        return this.$refs.billRepeatFromChild.getBillParam();
      },

      submitCallback(){
        this.$emit('ok');
        this.visible = false;
      },
      handleCancel () {
        this.close()
      }
    }
  }
</script>

<style scoped>
</style>